package cn.exrick.xboot.securityAdvisor.controllerImpl

import cn.exrick.xboot.base.entity.SecurityAdvisorJobTrain
import cn.exrick.xboot.base.service.IEnterpriseEmployeeRecordService
import cn.exrick.xboot.base.service.ISecurityAdvisorJobTrainService
import cn.exrick.xboot.base.vo.SecurityAdvisorJobTrainVo
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import cn.exrick.xboot.securityAdvisor.controller.ISecurityAdvisorController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RestController

@RestController
open class SecurityAdvisorJobTrainController : ISecurityAdvisorController.SecurityAdvisorJobTrain {


    @Autowired
    private lateinit var iSecurityAdvisorJobTrainService: ISecurityAdvisorJobTrainService

    @Autowired
    private lateinit var iEnterpriseEmployeeRecordService: IEnterpriseEmployeeRecordService

    override fun createOrUpdateJobTrain(securityAdvisorJobTrain: SecurityAdvisorJobTrain): Result<Any?>? {

        return iSecurityAdvisorJobTrainService.createOrUpdateJobTrain(securityAdvisorJobTrain)
    }

    override fun removeJobTrain(ids: Array<out String>): Result<Any?>? {

        return iSecurityAdvisorJobTrainService.removeJobTrain(ids)
    }

    override fun getJobTrainVo(id: String): SecurityAdvisorJobTrainVo? {

        return iSecurityAdvisorJobTrainService.getJobTrainVo(id)
    }

    override fun getJobTrainList(pageVo: PageVo, jobType: Int?, enterpriseId: String?, jobId: String?, roleType: Int?): Result<MutableMap<String, Any?>>? {

        return iSecurityAdvisorJobTrainService.getJobTrainList(pageVo,jobType, enterpriseId, jobId, roleType)
    }


}